<template>
    <div>
        <span>Comp2</span>
        <button @click="Count++">{{ Count }}</button>
        <slot></slot>
    </div>
</template>
<script setup>
import { inject, ref } from "vue";
const Count = inject("Count");
</script>
<style lang="less" scoped></style>
